//
//  JKResult.m
//  app
//
//  Created by huangbenhua on 15-4-16.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import "JKResult.h"

@interface JKResult()

@property (strong, nonatomic) UBTargetCaller* caller;

@end

@implementation JKResult

-(id)initWithTarget:(id)target action:(SEL)action
{
    self = [super init];
    if (self) {
        self.caller = [UBTargetCaller of:target action:action];
    }
    return self;
}

-(void)invoke
{
    if (self.caller) {
        [self.caller call:self];
    }
}

@end
